<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('AdminGood/index')}">商品管理</a></li>
			<li><a href="{:U('AdminGood/add',array('id'=>empty($item['id'])?'':$item['id']))}" target="_self">商品添加</a></li>
		</ul>
        <form class="well form-search" method="post" action="{:U('AdminGood/index')}">

        </form>
		<form class="js-ajax-form" action="" method="post">

			<table class="table table-hover table-bordered table-list">
				<thead>
					<tr>
                        <th width="50">商品名称</th>
                        <th width="50">物流卡单价</th>
                        <th width="50">会员卡单价</th>
                        <th width="50">是否石油</th>
						<th width="50">创建时间	</th>
						<th width="70">{:L('ACTIONS')}</th>

					</tr>
				</thead>
				<foreach name="list" item="vo">
				<tr>
                    <td><b>{$vo.good_name}</b></td>
                    <td>{$vo.good_unit_price}/{$vo.good_unit}</td>
                    <td>{$vo.vip_good_unit_price}/{$vo.good_unit}</td>
					<td>{$vo['is_oil'] ? '是' : '不是'}</td>
					<td>{$vo.create_time}</td>
					<td>

						<a href="{:U('AdminGood/add',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
						<a href="{:U('AdminGood/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>

					</td>
                    </if>
				</tr>
				</foreach>

			</table>

			<div class="pagination">{$page}</div>
		</form>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
		function refersh_window() {
			var refersh_time = getCookie('refersh_time');
			if (refersh_time == 1) {
				window.location = "{:U('AdminGood/index',$formget)}";
			}
		}

	</script>
</body>
</html>